package com.frxuexi.shop

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.GlideUtil
import com.frxuexi.lib_base.entity.ProductBean
import com.frxuexi.lib_base.entity.ProductBeanItem

class ShopAdapter:BaseQuickAdapter<ProductBeanItem,BaseViewHolder>(R.layout.item_shop) {
    override fun convert(helper: BaseViewHolder, item: ProductBeanItem) {
        GlideUtil.loadRoundImg(item.image,helper.getView(R.id.iv_shop))
        helper.setText(R.id.shop_name,item.storeName)
        helper.setText(R.id.shop_price,"${item.price}")
    }
}